<?php
include_once './Classes/Student.php';

$a = new Student('张三', 30, 170, 50);
//$a->play();
//$a->eat();
//$a->printInfo();
$a->eat();
$b = new Person();
$b->eat();


//
//$className = 'Student';
//$method = 'study';
//$a = new $className('张三', 20);
//$a->$method();
//$a->study();
//$b = new Student('里斯', 30);
//$b->play();
//$a->printInfo();
//$b->printInfo();